<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ page import="edu.njust.LabSystem.entity.*,edu.njust.LabSystem.Service.*" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>Student's Information</title>
    <%@ include file="/public/include2.jsp" %>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <style type="text/css">

        body {
            background: url("/img/person_bg.png") no-repeat ;

            -webkit-background-size: cover;
            -moz-background-size: cover;
            -o-background-size: cover;
            background-size: cover;
            background-position: 0px 0px;
        }

    </style>
</head>

<body>
    <%
	  String uid = (String) session.getAttribute("uid");
	  IStudentService service = new IStudentService();
	  Student student = service.getStudentById(uid);
  %>
<div class="nav nav-tabs success" style="background-color: #c9c6fa;height:60px;">
    <div class="" style="float: left;margin-left: 30px">
        <img class="user-photo" style="" src="img/face.jpg"/>
    </div>
    <div class="nav-item" style="float:left;margin-left:5px;">
        <a style=""><%=student.getName() %>
        </a>
    </div>
    <div class="nav-item">
        <a href="StudentHomePage.jsp?uid=${uid}">返回首页</a>
    </div>
    <div class="nav-item" style="margin-right:5px;">
        <img class="icon" style="width: 20px;height: 20px;" src="img/home.png"/>
    </div>

    <%-- <div class="nav-item" style="">
         <a style="" href="StudentInfo.jsp?action=StudentInfoController&uid=${uid}">个人中心</a>
     </div>
     <div class="nav-item" style="margin-right:5px;">
         <img class="icon" style="clear:both;width: 20px;height: 20px;" src="img/person_white.png"/>
     </div>--%>
</div>
<div style="float: right;border: #6e5e98 3px solid ; padding: 30px;margin-right: 60px;margin-top: 160px;padding-right: 30px;width: 220px">
    <div class="form-group">
        <div class="form-group" style="margin-left: 10px;">
            <label>姓名：</label>
            <span><%=student.getName() %></span>
        </div>
        <div class="form-group" style="margin-left: 10px;">
            <label>学号：</label>
            <span><%=student.getId() %></span>
        </div>
        <div class="form-group" style="margin-left: 10px;">
            <label>班级：</label>
            <span><%=student.getClassid() %></span>
        </div>
    </div>
</div>
</html>
